package jgl.vajra.operator.part.mine.viewModel;

import java.util.Map;

import jgl.vajra.operator.bean.BillDetailsBean;
import jgl.vajra.operator.part.mine.contract.BillDetailsContract;
import jgl.vajra.operator.part.mine.model.BillDetailsModel;
import jgl.vajra.operator.widget.mvvm.factory.CreateModel;
import jgl.vajra.operator.widget.retrofithelper.rxsubscriber.ProgressObserver;

@CreateModel(BillDetailsModel.class)
public class BillDetailsViewModel extends BillDetailsContract.ViewModel{
    @Override
    public void getBillDetailsData(Map<String, Object> map) {
        mModel.getBillDetailsData(map).subscribe(new ProgressObserver<BillDetailsBean>(true,this) {
            @Override
            public void _onNext(BillDetailsBean data) {
                mView.returnBillDetailsData(data);
            }
        });
    }
}
